/**
 * Project Name:fire-industry-DM-center
 * File Name:FireException.java
 * Package Name:com.firestone.core.exception
 * Date:2018年3月15日下午5:25:03
 *
*/

package com.firestone.core.exception;

/**
 * @Description: TODO(定制异常)
 * @author CAIYJ
 * @date 2018年3月15日 下午5:25:03
 */
public class FireException extends RuntimeException {

    private static final long serialVersionUID = 1719842926542292504L;
    private Throwable throwable;

    private Integer errorCode;

    public FireException(Throwable throwable) {
        super(throwable);
    }

    public FireException(Integer errorCode, String message,
            Throwable throwable) {
        super(message, throwable);
        this.errorCode = errorCode;
    }

    public FireException() {
        super();
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

}
